package com.example.demo.testconcurrent.service.impl;

import com.example.demo.testconcurrent.entity.TestConcurrent;
import com.example.demo.testconcurrent.mapper.TestConcurrentMapper;
import com.example.demo.testconcurrent.service.ITestConcurrentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gaobing
 * @since 2020-08-21
 */
@Service
public class TestConcurrentServiceImpl extends ServiceImpl<TestConcurrentMapper, TestConcurrent> implements ITestConcurrentService {

    @Resource
    private TestConcurrentMapper testConcurrentMapper;

    @Override
    public void increment() {
        testConcurrentMapper.updateCount();
    }
}
